using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblSetting
	{
	private int stt;
	private int idTruong;
	private string webURL;
	private string ftpAddress;
	private string ftpUser;
	private string ftpPass;
	private string ftpPort;
	private string saveMedia;
	public tblSetting()
	{}
	public tblSetting(int stt,int idTruong,string webURL,string ftpAddress,string ftpUser,string ftpPass,string ftpPort,string saveMedia)
	{
	this.stt = stt;
	this.idTruong = idTruong;
	this.webURL = webURL;
	this.ftpAddress = ftpAddress;
	this.ftpUser = ftpUser;
	this.ftpPass = ftpPass;
	this.ftpPort = ftpPort;
	this.saveMedia = saveMedia;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int IdTruong{
	get { return this.idTruong;}
	set {this.idTruong=value;}
	}
	public string WebURL{
	get { return this.webURL;}
	set {this.webURL=value;}
	}
	public string FtpAddress{
	get { return this.ftpAddress;}
	set {this.ftpAddress=value;}
	}
	public string FtpUser{
	get { return this.ftpUser;}
	set {this.ftpUser=value;}
	}
	public string FtpPass{
	get { return this.ftpPass;}
	set {this.ftpPass=value;}
	}
	public string FtpPort{
	get { return this.ftpPort;}
	set {this.ftpPort=value;}
	}
	public string SaveMedia{
	get { return this.saveMedia;}
	set {this.saveMedia=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.idTruong+"; "+this.webURL+"; "+this.ftpAddress+"; "+this.ftpUser+"; "+this.ftpPass+"; "+this.ftpPort+"; "+this.saveMedia+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblSetting me=(tblSetting)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 